package cm.match.rule.impl;

import cm.match.dto.RuleDto;
import cm.match.rule.AbstractRule;

import static cm.match.constant.RuleConstant.MATCH_ADDRESS_START;

public class AddressRule extends AbstractRule  {


    @Override
    public boolean execute(RuleDto dto) {
        System.out.println("AddressRule invoke!");
        if (dto.getAddress().startsWith(MATCH_ADDRESS_START)) {
            return true;
        }
        return false;
    }
}
